package com.cloud.basic.QRCode;

import java.util.Properties;

/**
 * @program: basic
 * @description: 生成二维码
 * @author: Cloud
 * @create: 2020/12/8 09:42:25
 */
public class QRCodeGenerator {

    public static void main(String[] args) {
        String text = "http://192.168.1.199:10025/";
        String imagePath = "D:\\image\\logo.png";
        String destPath = "D:\\image\\QRCode.jpg";
        String string = "";
        try {
            QRCodeUtil.encode(text,imagePath,destPath,true);
            string = QRCodeUtil.decode(destPath);
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println("string = " + string);
        Properties resources = new Properties();

//        System.out.println(resources.getLocale().getDisplayName());
    }
}
